import request from '@/utils/request'

// 查询订单列表
export function listOrders(query) {
  return request({
    url: '/crm/order/info/list',
    method: 'get',
    params: query
  })
}

// 获取快递信息
export function getShippingInfo(id) {
  return request({
    url: '/crm/order/info/shipping/' + id,
    method: 'get'
  })
}

// 导入运单
export function importWaybill(data) {
  return request({
    url: '/crm/order/info/import',
    method: 'post',
    data: data
  })
}

// 导出订单
export function exportOrders(query) {
  return request({
    url: '/crm/order/info/export',
    method: 'get',
    params: query
  })
}